package com.dfbz.service;

import com.dfbz.model.PageEntity;
import com.dfbz.model.User;

import java.util.List;


public interface UserServer {
    User findById(Integer id);
    List<User> toLogin(String username, String password);

    boolean toRegister(User user);

    PageEntity<User> findUser(Integer currPage, String username);

    void update(User user);
}
